#DES new decisions#

DES_desert_gambit_category = {

	DES_ashgabat_accord_mission = {
		icon = GFX_decision_generic_flags
		allowed = { always = no }
		available = {
			has_global_flag = completed_tabriz_ashgabat_rail
			has_global_flag = completed_tehran_bandar_abbas_rail
		}
		selectable_mission = yes
		is_good = no
		days_mission_timeout = 365
		ai_will_do = {
			base = 1000
		}
		complete_effect = { ###LETS GO
			log = "[GetDateText]: [Root.GetName]: Decision complete DES_ashgabat_accord_mission"
			diplomatic_relation = {
				country = PER
				relation = non_aggression_pact
			}
			diplomatic_relation = {
				country = PER
				relation = military_access
			}
			diplomatic_relation = {
				country = PER
				relation = docking_rights
			}
			add_ideas = RUS_ashgabat_accord_RUS_side
			PER = { add_ideas = RUS_ashgabat_accord_PER_side }
			if = {
				limit = { BUK = { is_subject_of = RUS } }
				418 = { transfer_state_to = BUK }
			}
			else = {
				418 = { transfer_state_to = RUS }
			}
			country_event = DES.8
			news_event = DESnews.0
			set_global_flag = rus_per_ashgabat_accord_success
		}
		timeout_effect = { ###Bad End
			log = "[GetDateText]: [Root.GetName]: Decision timeout DES_ashgabat_accord_mission"
			add_political_power = -25
		}
	}

	DES_pick_iran = {
		icon = GFX_decision_generic_agreement
		allowed = { tag = RUS }
		available = {
			has_global_flag = rus_per_ashgabat_accord_success
		}
		cost = 5

		fire_only_once = yes
		ai_will_do = {
			base = 2500
		}
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision complete DES_pick_iran target: [From.GetName]"
			activate_targeted_decision = { target = PER decision = DES_RUS_invite_PER_alliance }
			activate_targeted_decision = { target = PER decision = DES_RUS_generic_mission }
			activate_targeted_decision = { target = PER decision = DES_combined_mountaineer_excercise }
			activate_targeted_decision = { target = 411 decision = DES_isfahan_steel_mill }
			activate_targeted_decision = { target = 419 decision = DES_tabriz_chemical_plant }
			activate_targeted_decision = { target = 420 decision = DES_caspian_coast_agriculture }
			activate_targeted_decision = { target = 266 decision = DES_tehran_automobile_factory }
			activate_targeted_decision = { target = 416 decision = DES_mashhad_heavy_machinery }
			activate_targeted_decision = { target = 412 decision = DES_bandar_abbas_port }
		}
	}

	DES_RUS_invite_PER_alliance = {
		name = invite_country
		icon = GFX_decision_generic_agreement
		allowed = { always = no } #activated by effect

		available = {
			FROM = { at_peace_or_same_major_enemies_as_ROOT = yes }
			PER = { is_faction_leader = no }
			PER = { NOT = { has_completed_focus = PER_declaration_of_persepolis } }
			OR = {
				has_war_with = TUR
				EGY = { has_completed_focus = EGY_Victory_Levant }
			}
		}

		visible = {
			is_faction_leader = yes
			FROM = {
				exists = yes
				is_valid_peace_target = yes
				NOT = { has_war_with = ROOT }
				both_socialist_or_both_not_socialist = yes
			}
		}
		cost = 50
		fire_only_once = yes

		ai_will_do = {
			factor = 100
			modifier = {
				factor = 0
				FROM = { any_owned_state = { is_claim_or_core_of_ROOT = yes } }
			}
			modifier = {
				factor = 0
				NOT = { 
					PER = { 
						has_completed_focus = PER_declaration_of_persepolis
					} 
				}
			}
			modifier = {
				factor = 0
				surrender_progress > 0.05
			}
			modifier = {
				factor = 0
				FROM = {
					OR = {
						has_war_with = INT
						has_war_with = ENT
					}
				}
			}
			modifier = {
				factor = 0
				NOT = { has_global_flag = second_weltkrieg_has_ended }
			}
		}

		complete_effect = {
			log = "[GetLogRoot][GetLogFrom]: Decision complete RUS_invite_alliance"
			FROM = { country_event = { id = russia_foreign_policy_events.70 days = 3 random_days = 3 } }
		}
	}

	DES_RUS_generic_mission = {
		icon = GFX_decision_generic_army_support
		allowed = { always = no }
		available = {
			land_doctrine_level > 0
		}
		custom_cost_trigger = {
			command_power > 25
		}
		custom_cost_text = CP_25
		fire_only_once = yes
		ai_will_do = {
			base = 10
			modifier = {
				add = 20
				command_power > 75
			}
		}
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision complete DES_RUS_generic_mission target: [From.GetName]"
			hidden_effect = {
				add_command_power = -25
			}
			FROM = {
				country_event = DES.0
			}
			custom_effect_tooltip = if_they_accept_tt
			effect_tooltip = {
				army_experience = 30
				FROM = {
					add_ideas = RUS_DES_generic_military_mission
					activate_targeted_decision = { target = RUS decision = DES_PER_motorized_cossack_division }
				}
			}
		}
	}

	DES_combined_mountaineer_excercise = {
		icon = GFX_decision_generic_reorganize_irregulars
		allowed = { always = no }
		available = {
			PER = { has_idea = RUS_DES_generic_military_mission }
		}
		days_remove = 60
		custom_cost_trigger = {
			command_power > 25
		}
		custom_cost_text = CP_25
		fire_only_once = yes
		ai_will_do = {
			base = 10
			modifier = {
				add = 20
				command_power > 75
			}
		}
		complete_effect = {
			hidden_effect = {
				add_command_power = -25
			}
		}
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision complete DES_combined_mountaineer_excercise target: [From.GetName]"
			add_doctrine_cost_reduction = {
				name = DES_combined_mountaineer_excercise
				cost_reduction = 0.5
				uses = 2
				category = cat_mountaineers_doctrine
			}
			PER = {
				add_doctrine_cost_reduction = {
					name = DES_combined_mountaineer_excercise
					cost_reduction = 0.33
					uses = 2
					category = land_doctrine
				}
				activate_targeted_decision = { target = RUS decision = DES_PER_new_mountaineer_division }
			}
		}
	}

	DES_PER_motorized_cossack_division = {
		icon = GFX_decision_soldierly_discipline
		allowed = { always = no } #activated by effect
		available = {
			PER = { has_idea = RUS_DES_generic_military_mission }
			has_capitulated = no
			has_tech = tech_support
			has_tech = tech_trucks
		}

		days_remove = 60
		modifier = {
			political_power_gain = -0.5
			command_power_gain = -0.25
		}
		custom_cost_trigger = {
			has_equipment = { infantry_equipment > 999 }
			has_manpower > 12000
		}
		custom_cost_text = 12000_mp_1000_eq

		fire_only_once = yes

		ai_will_do = { factor = 100 }

		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision complete DES_PER_motorized_cossack_division"
			hidden_effect = {
				add_manpower = -12000
				add_equipment_to_stockpile = {
					type = infantry_equipment
					amount = -1000
				}
			}
		}
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision remove DES_PER_motorized_cossack_division"

			division_template = {
				name = "Cossack Motorized Division"

				regiments = {
					motorized = { x = 0 y = 0 }
					motorized = { x = 0 y = 1 }
					motorized = { x = 0 y = 2 }
					motorized = { x = 1 y = 0 }
					motorized = { x = 1 y = 1 }
					motorized = { x = 1 y = 2 }
					motorized = { x = 2 y = 0 }
					motorized = { x = 2 y = 1 }
					motorized = { x = 2 y = 2 }
					mot_artillery_brigade = { x = 3 y = 0 }
				}
				support = {
					mot_recon = { x = 0 y = 0 }
					engineer = { x = 0 y = 1 }
					artillery = { x = 0 y = 2 }
				}
			}
			hidden_effect = {
				random_owned_controlled_state = {
					limit = { valid_state_for_spawning_friendly_unit = yes }
					create_unit = {
						division = "name = \"1. Cossack Motorized Division\" division_template = \"Cossack Motorized Division\" start_experience_factor = 1"
						owner = ROOT
					}
				}
			}
			custom_effect_tooltip = DES_PER_cossack_motorized_division_tt
		}
	}

	DES_PER_new_mountaineer_division = {
		icon = GFX_decision_soldierly_discipline
		allowed = { always = no } #activated by effect
		available = {
			PER = { has_idea = RUS_DES_generic_military_mission }
			has_capitulated = no
			has_tech = tech_support
		}

		days_remove = 60
		modifier = {
			political_power_gain = -0.5
			command_power_gain = -0.25
		}
		custom_cost_trigger = {
			has_equipment = { infantry_equipment > 999 }
			has_manpower > 12000
		}
		custom_cost_text = 12000_mp_1000_eq

		fire_only_once = yes

		ai_will_do = { factor = 100 }

		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision complete DES_PER_new_mountaineer_division"
			hidden_effect = {
				add_manpower = -12000
				add_equipment_to_stockpile = {
					type = infantry_equipment
					amount = -1000
				}
			}
		}
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision remove DES_PER_new_mountaineer_division"

			division_template = {
				name = "New Mountaineer Division"

				regiments = {
					mountaineers = { x = 0 y = 0 }
					mountaineers = { x = 0 y = 1 }
					mountaineers = { x = 0 y = 2 }
					mountaineers = { x = 1 y = 0 }
					mountaineers = { x = 1 y = 1 }
					mountaineers = { x = 1 y = 2 }
					mountaineers = { x = 2 y = 0 }
					mountaineers = { x = 2 y = 1 }
					mountaineers = { x = 2 y = 2 }
					mountaineers = { x = 3 y = 0 }
					mountaineers = { x = 3 y = 1 }
					artillery_brigade = { x = 4 y = 0 }
				}
				support = {
					rangers_support = { x = 0 y = 0 }
					engineer = { x = 0 y = 1 }
					artillery = { x = 0 y = 2 }
				}
			}
			hidden_effect = {
				random_owned_controlled_state = {
					limit = { valid_state_for_spawning_friendly_unit = yes }
					create_unit = {
						division = "name = \"1. New Mountaineer Division\" division_template = \"New Mountaineer Division\" start_experience_factor = 1"
						owner = ROOT
					}
				}
			}
			custom_effect_tooltip = DES_PER_new_mountaineer_division_tt
		}
	}

	DES_tabriz_chemical_plant = {
		icon = GFX_decision_cement_mixer
		allowed = { always = no }
		visible = {
			FROM = { is_fully_controlled_by = PER }
		}
		cancel_if_not_visible = yes
		available = {
			FROM = { is_fully_controlled_by = PER }
			num_of_civilian_factories_available_for_projects > 2
		}
		highlight_states = { highlight_state_targets = { state = 419 } } #Tabriz
		cost = 25

		state_target = yes
		days_remove = 90
		fire_only_once = yes
		modifier = { civilian_factory_use = 3 }
		ai_will_do = {
			base = 0
			modifier = {
				add = 15
				has_political_power > 100
			}
		}
		cancel_trigger = {
			NOT = {
				419 = { is_fully_controlled_by = PER }
			}
        	}
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision complete DES_tabriz_chemical_plant target: [From.GetName]"
			
		}
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision remove DES_tabriz_chemical_plant target: [From.GetName]"
			set_global_flag = DES_russia_invested_tabriz_flag
			419 = {
				add_building_construction = { type = infrastructure level = 1 }
				add_building_construction = { type = synthetic_refinery level = 1 }
				add_building_construction = { type = industrial_complex level = 1 }
				if = {
					limit = { PER = { has_completed_focus = PER_steel_mill } }
					add_extra_state_shared_building_slots = 2
				}
				else = { increase_state_category_by_two_levels = yes }

			}
		}
	}

	DES_isfahan_steel_mill = {
		icon = steel
		allowed = { always = no }
		visible = {
			FROM = { is_fully_controlled_by = PER }
		}
		cancel_if_not_visible = yes
		available = {
			FROM = { is_fully_controlled_by = PER }
			num_of_civilian_factories_available_for_projects > 2
		}
		highlight_states = { highlight_state_targets = { state = 411 } } #Isfahan
		cost = 30

		state_target = yes
		days_remove = 90
		fire_only_once = yes
		modifier = { civilian_factory_use = 3 }
		ai_will_do = {
			base = 0
			modifier = {
				add = 25
				has_political_power > 75
			}
		}
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision complete DES_isfahan_steel_mill target: [From.GetName]"
			
		}
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision remove DES_isfahan_steel_mill target: [From.GetName]"
			set_global_flag = DES_russia_invested_isfahan_flag
			411 = {
				add_extra_state_shared_building_slots = 2
				add_building_construction = { type = infrastructure level = 1 }
				add_building_construction = { type = industrial_complex level = 2 }
				add_resource = {
					type = steel
					amount = 16
				}
				if = {
					limit = { PER = { has_completed_focus = PER_steel_mill } }
					add_extra_state_shared_building_slots = 2
				}
				else = { increase_state_category_by_two_levels = yes }
			}
		}
	}

	DES_caspian_coast_agriculture = {
		icon = GFX_decision_generic_agriculture
		allowed = { always = no }
		visible = {
			FROM = { is_fully_controlled_by = PER }
		}
		cancel_if_not_visible = yes
		available = {
			FROM = { is_fully_controlled_by = PER }
			num_of_civilian_factories_available_for_projects > 2
		}
		highlight_states = { highlight_state_targets = { state = 420 } } #Mazandaran
		cost = 20

		state_target = yes
		days_remove = 90
		fire_only_once = yes
		modifier = { civilian_factory_use = 3 }
		ai_will_do = {
			base = 0
			modifier = {
				add = 15
				has_political_power > 75
			}
		}
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision complete DES_caspian_coast_agriculture target: [From.GetName]"
			
		}
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision remove DES_caspian_coast_agriculture target: [From.GetName]"
			set_global_flag = DES_russia_invested_caspian_flag
			420 = {
				add_extra_state_shared_building_slots = 3
				add_building_construction = { type = infrastructure level = 1 }
				add_building_construction = { type = industrial_complex level = 1 }
				PER_decrease_famine_effect = yes

			}
		}
	}

	DES_tehran_automobile_factory = {
		icon = GFX_decision_generic_motorized
		allowed = { always = no }
		visible = {
			FROM = { is_fully_controlled_by = PER }
		}
		cancel_if_not_visible = yes
		available = {
			FROM = { is_fully_controlled_by = PER }
			num_of_civilian_factories_available_for_projects > 2
		}
		highlight_states = { highlight_state_targets = { state = 266 } } #Tehran
		cost = 30

		state_target = yes
		days_remove = 90
		fire_only_once = yes
		modifier = { civilian_factory_use = 3 }
		ai_will_do = {
			base = 0
			modifier = {
				add = 15
				has_political_power > 50
			}
		}
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision complete DES_tehran_automobile_factory target: [From.GetName]"
			
		}
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision remove DES_tehran_automobile_factory target: [From.GetName]"
			set_global_flag = DES_russia_invested_tehran_flag
			266 = {
				add_extra_state_shared_building_slots = 3
				add_building_construction = { type = infrastructure level = 1 }
				add_building_construction = { type = industrial_complex level = 2 }
				add_building_construction = { type = arms_factory level = 1 }
				if = {
					limit = { PER = { has_completed_focus = PER_tehran_auto } }
					add_extra_state_shared_building_slots = 2
				}
				else = { increase_state_category_by_two_levels = yes }

			}
			PER = { 
				if = {
					limit = { NOT = { has_tech = tech_trucks } }
					set_technology = { tech_trucks = 1 }
				}
				add_equipment_to_stockpile = {
					type = motorized_equipment
					amount = 250
					producer = RUS
				}
			}
		}
	}

	DES_mashhad_heavy_machinery = {
		icon = GFX_decision_generic_construction
		allowed = { always = no }
		visible = {
			FROM = { is_fully_controlled_by = PER }
		}
		cancel_if_not_visible = yes
		available = {
			FROM = { is_fully_controlled_by = PER }
			num_of_civilian_factories_available_for_projects > 2
		}
		highlight_states = { highlight_state_targets = { state = 416 } } #khorasan
		cost = 25

		state_target = yes
		days_remove = 90
		fire_only_once = yes
		modifier = { civilian_factory_use = 3 }
		ai_will_do = {
			base = 0
			modifier = {
				add = 15
				has_political_power > 75
			}
		}
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision complete DES_mashhad_heavy_machinery target: [From.GetName]"
			
		}
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision remove DES_mashhad_heavy_machinery target: [From.GetName]"
			set_global_flag = DES_russia_invested_mashhad_flag
			416 = {
				add_building_construction = { type = infrastructure level = 1 }
				add_building_construction = { type = arms_factory level = 2 }
				if = {
					limit = { PER = { has_completed_focus = PER_mashhad_machinery } }
					add_extra_state_shared_building_slots = 2
				}
				else = { increase_state_category_by_two_levels = yes }

			}
			PER = {
				if = {
					limit = { NOT = { has_tech = tech_support } }
					set_technology = { tech_support = 1 }
				}
				add_equipment_to_stockpile = {
					type = artillery_equipment
					amount = 250
					producer = RUS
				}
			}
		}
	}

	DES_bandar_abbas_port = {
		icon = GFX_decision_generic_naval_base
		allowed = { always = no }
		visible = {
			FROM = { is_fully_controlled_by = PER }
		}
		cancel_if_not_visible = yes
		available = {
			FROM = { is_fully_controlled_by = PER }
			num_of_civilian_factories_available_for_projects > 2
		}
		highlight_states = { highlight_state_targets = { state = 412 } } #khorasan
		cost = 20

		state_target = yes
		days_remove = 90
		fire_only_once = yes
		modifier = { civilian_factory_use = 3 }
		ai_will_do = {
			base = 0
			modifier = {
				add = 5
				has_political_power > 100
			}
		}
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision complete DES_bandar_abbas_port target: [From.GetName]"
			set_global_flag = ongoing_investing_bandar_abbas
		}
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision remove DES_bandar_abbas_port target: [From.GetName]"
			set_global_flag = DES_russia_invested_bandar_abbas_flag
			412 = {
				add_building_construction = { type = infrastructure level = 1 }
				add_building_construction = { type = industrial_complex level = 1 }
				add_building_construction = { type = dockyard level = 1 }
				add_building_construction = {
					type = naval_base
					level = 2
					instant_build = yes
					province = 7982
				}
				add_resource = {
    					type = oil
    					amount = 11
				}
				if = {
					limit = { PER = { has_completed_focus = PER_expand_bandar_abbas } }
					add_extra_state_shared_building_slots = 2
				}
				else = { increase_state_category_by_two_levels = yes }

			}
			PER = {
				add_equipment_to_stockpile = {
					type = convoy_1
					amount = 25
					producer = RUS
				}
				if = {
					limit = { NOT = { has_tech = mtg_transport } }
					set_technology = { mtg_transport = 1 }
				}
			}
		}
	}

	DES_tabriz_ashgabat_railroad = {
		icon = GFX_decision_train
		allowed = { always = no }
		visible = {
			266 = { is_fully_controlled_by = PER }
			416 = { is_fully_controlled_by = PER }
		}
		cancel_if_not_visible = yes
		available = {
			266 = { is_fully_controlled_by = PER }
			416 = { is_fully_controlled_by = PER }
			OR = {
				418 = { is_fully_controlled_by = PER }
				418 = { is_fully_controlled_by = RUS }
			}
			num_of_civilian_factories_available_for_projects > 4
		}
		highlight_states = {
			highlight_state_targets = {
				state = 266 #Tehran
				state = 416 #khorasan
				state = 418 #Ashgabat
			}
		}
		cost = 15

		state_target = yes
		days_remove = 160
		fire_only_once = yes
		modifier = { civilian_factory_use = 5 }
		ai_will_do = {
			base = 2000
		}
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision complete DES_tehran_ashgabat_railroad target: [From.GetName]"
			set_global_flag = ongoing_tabriz_ashgabat_rail
		}
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision remove DES_tehran_ashgabat_railroad target: [From.GetName]"
			clr_global_flag = ongoing_tabriz_ashgabat_rail
			set_global_flag = completed_tabriz_ashgabat_rail
			build_railway = {
    				level = 2
    				start_province = 1896 #tabriz
    				target_province = 12333 #ashgabat
			}
			build_railway = {
    				level = 2
    				start_province = 5029 #mashhad
    				target_province = 12333 #ashgabat
			}
			419 = {
				add_building_construction = { type = infrastructure level = 1 }
				increase_state_category_by_one_level = yes
			}
			266 = {
				add_building_construction = { type = infrastructure level = 1 }
				increase_state_category_by_one_level = yes
			}
			416 = {
				add_building_construction = { type = infrastructure level = 1 }
				increase_state_category_by_one_level = yes
				add_building_construction = {
					type = supply_node
					level = 1
					province = 5029
					instant_build = yes
				}
			}
			418 = {
				add_building_construction = { type = infrastructure level = 1 }
				increase_state_category_by_one_level = yes
			}
			PER = { 
				add_equipment_to_stockpile = {
					type = train_equipment_1
					amount = 15
					producer = RUS
				}
			}
		}
	}

	DES_tehran_bandar_abbas_railroad = {
		icon = GFX_decision_train
		allowed = { always = no }
		visible = {
			266 = { is_fully_controlled_by = PER }
			411 = { is_fully_controlled_by = PER }
			412 = { is_fully_controlled_by = PER }
		}
		cancel_if_not_visible = yes
		available = {
			266 = { is_fully_controlled_by = PER }
			411 = { is_fully_controlled_by = PER }
			412 = { is_fully_controlled_by = PER }
			num_of_civilian_factories_available_for_projects > 4
		}
		highlight_states = {
			highlight_state_targets = {
				state = 266 #Tehran
				state = 411 #Isfahan
				state = 412 #Fars
			}
		}
		cost = 15

		state_target = yes
		days_remove = 160
		fire_only_once = yes
		modifier = { civilian_factory_use = 5 }
		ai_will_do = {
			base = 2000
		}
		
		complete_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision complete DES_tehran_ashgabat_railroad target: [From.GetName]"
			set_global_flag = ongoing_tehran_bandar_abbas_rail
		}

		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision remove DES_tehran_bandar_abbas_railroad target: [From.GetName]"
			clr_global_flag = ongoing_tehran_bandar_abbas_rail
			set_global_flag = completed_tehran_bandar_abbas_rail
			build_railway = {
    				level = 2
    				start_province = 10837 #tehran
    				target_province = 2026 #isfahan
			}
			build_railway = {
    				level = 2
    				start_province = 2026 #isfahan
    				target_province = 8117 #shiraz
			}
			build_railway = {
    				level = 2
    				start_province = 8117 #shiraz
    				target_province = 7982 #bandar abbas
			}
			266 = {
				add_building_construction = { type = infrastructure level = 1 }
				increase_state_category_by_one_level = yes
			}
			411 = {
				add_building_construction = { type = infrastructure level = 1 }
				increase_state_category_by_one_level = yes
				add_building_construction = {
					type = supply_node
					level = 1
					province = 2026
					instant_build = yes
				}
			}
			412 = {
				add_building_construction = { type = infrastructure level = 1 }
				increase_state_category_by_one_level = yes
				add_building_construction = {
					type = supply_node
					level = 1
					province = 8117
					instant_build = yes
				}
			}
			PER = { 
				add_equipment_to_stockpile = {
					type = train_equipment_1
					amount = 15
					producer = RUS
				}
			}
		}
	}

	DES_ashgabat_secret_clause = {
		icon = GFX_decision_eng_trade_unions_demand
		allowed = { always = no }
		available = {
			229 = { 
				is_fully_controlled_by = PER 
				NOT = { is_core_of = PER }
			}
			998 = { 
				is_fully_controlled_by = PER 
				NOT = { is_core_of = PER }
			}
		}
		highlight_states = {
			highlight_state_targets = {
				state = 229 #baku
				state = 998 #highland
			}
		}
		cost = 25
		days_remove = 30
		state_target = yes
		fire_only_once = yes
		ai_will_do = {
			base = 0
		}
		cancel_trigger = {
			NOT = {
				229 = { is_fully_controlled_by = PER }
				998 = { is_fully_controlled_by = PER }
			}
        	}
		remove_effect = {
			log = "[GetDateText]: [Root.GetName]: Decision complete DES_tehran_bandar_abbas_railroad target: [From.GetName]"
			229 = { transfer_state_to = RUS }
			998 = { transfer_state_to = RUS }
		}
	}

}